﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="MessageGet.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.MessageManage.MessageGet"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="AuditNoticeList.aspx">公告列表</a></li>
            <li class="active"><a href="MessageGet.aspx">消息列表</a></li>
            <li><a href="FeedBackList.aspx">反馈列表</a></li>
        </ul>
    </div>

    <div class="maincon">
        <div>
            <asp:RadioButtonList ID="rblMessageType" runat="server" RepeatDirection="Horizontal"
                RepeatLayout="Flow" CellPadding="0" CellSpacing="0" ToolTip="选择不同类型的消息" ForeColor="Black"
                OnSelectedIndexChanged="rblMessageType_SelectedIndexChanged" AutoPostBack="True">
                <asp:ListItem Selected="True" Text="收件箱" Value="M1" />
                <asp:ListItem Text="发件箱" Value="M2" />
            </asp:RadioButtonList>
        </div>
        <div id="note2">
        </div>
    </div>
    <asp:GridView ID="gvwMsgList" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="mainlist" EmptyDataText="暂无消息！" OnRowDataBound="gvwMsgList_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="标题">
                <ItemTemplate>
                    <a href='MessageInfo.aspx?mID=<%# Eval("MessageID") %>&flag=<%=rblMessageType.SelectedValue %>'>
                        <asp:Label runat="server" ID="lblTitle" Text='<%# Server.HtmlEncode(Eval("Title").ToString()) %>'></asp:Label></a>
                </ItemTemplate>
                <HeaderStyle Width="300px" />
            </asp:TemplateField>
            <asp:BoundField DataField="SenderName" HeaderText="发件人" HeaderStyle-Width="100px" />
            <asp:BoundField DataField="SendTime" HeaderText="发送时间" HeaderStyle-Width="100px" />
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Literal ID="ltrStatus" runat="server" Text='<%# Eval("Status") %>'></asp:Literal>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" " Visible="false">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwInvoice','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="chkMsg" id="chkMsg" value='<%#Eval("MessageID")%>' onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwInvoice','addTable_chkAll');"
                        runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
